layui.use('table', function(){
    var table = layui.table;

    $(function () {

        table.render({
            elem: '#chekInfoDetailTable'
            ,url:'/get/findUser'
            ,height: document.body.clientHeight-100
            ,toolbar: '#toolbarDemo'
            ,page: true
            ,cols: [[
                {field:'id', title: 'ID',width:80}
                ,{field:'brand', title: '网元'}
                ,{field:'path', title: '地市' }
                ,{field:'model', title: '厂家' }
                ,{field:'model', title: '类型' }
                ,{field:'model', title: '核查项' }
                ,{field:'model', title: '操作指令' }
                ,{field:'model', title: '解析结果' }
                ,{field:'model', title: '正常值' }
                ,{field:'model', title: '状态' }
                ,{field:'createTime', title: '核查时间', sort: true,width:160},
                ,{fixed: 'right', title:'操作', toolbar: '#barDemo'}
            ]]
        });
        table.render();

    })


    //头工具栏事件
    table.on('toolbar(user_filter)', function(obj){
        var checkStatus = table.checkStatus(com.network.config.id); //获取选中行状态
        switch(obj.event){
            case 'getCheckData':
                var data = checkStatus.data;  //获取选中行数据
                layer.alert(JSON.stringify(data));
                break;
        };
    });
});